package com.cskaoyan.controller;

import com.cskaoyan.service.FeedbackService;
import com.cskaoyan.vo.BaseRespVo;
import com.cskaoyan.vo.FeedbackVo;
import org.apache.shiro.authz.annotation.RequiresPermissions;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class FeedbackController {
    @Autowired
    FeedbackService feedbackService;

    /**
     * 功能:意见反馈页面
     * 作者:whj
     */
    @RequestMapping("admin/feedback/list")
    public BaseRespVo list(Integer page, Integer limit, String username, Integer id, String sort, String order){
        FeedbackVo feedbackVo = feedbackService.query(page,limit,username,id,sort,order);
        return BaseRespVo.ok(feedbackVo);
    }
}
